<html><head></head><body>
<table border=0 cellspacing=0 cellpadding=6>
<tr>
<td valign=top><img src="icon.png"><td valign=top>
<h2>Mouse Traps</h2> 
By Gabriel Catalin Balan
</table>

<p>A reimplementation of the original <a href="http://www.swarm.org/wiki/Examples_of_Swarm_applications">Mouse Trap</a> example from <a href="http://www.swarm.org/wiki/Swarm_main_page">Swarm</a>.  The floor is covered with a grid of mouse traps, each holding a ping-pong ball.  Each time a ping-pong ball lands on an unsprung mouse trap, it fires the ball back up, plus the mouse trap's own ball, at random trajectories.  If a ball hits a sprung mouse trap, the ball disappears.  A single ball is dropped in the center of the field to start, and chaos ensues.

<p>Our implementation has a slight twist: we track the 3D trajectories of the balls.  This enables the 3D Mouse Traps example elsewhere.

</body></html>
